FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.11-slim

WORKDIR /app

# ...existing code: copy requirements.txt and install dependencies...
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# ...existing code: copy all project files...
COPY . .

EXPOSE 5000

CMD ["python", "app.py"]
